Did replacing your controller solve the issue temporarily or were the steps still closing when the door is shut? If there was no change the control module isn't the cause of the issue. Typically a bad ground connection can cause steps like these to act out but I know we've talked about this in the previous question you asked so I'm assuming you already checked yours and it's still giving you problems.
From there it could honestly be the lock out switch. The internal contacts of the switch... view full answer...